package cn.itcast.mapper;

import cn.itcast.entity.Account;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface AccountMapper {
    List<Account> findAll();

    @Select("select * from account where id=#{id}")
    Account getById(@Param("id") Integer id);

}
